﻿@{
ViewBag.Title = "报销单审核";
Layout = "~/Views/Shared/_Layout.cshtml";
}
@section mystyle{

}

<!-- search -->
<div class="content margin-top-20" id="search-box">
  <div class="container">
    <div class="row">
      <div class="col-sm-12">
        <div class="box padding-top-10 padding-bottom-10">
          <form class="form-inline">
            <div class="form-group">
              <label for="" class="margin-left-10">项目名称</label>
              <input type="search" name="search" id="search" class="form-control margin-left-10">


            </div>

            <div class="form-group">
              <label for="" class="margin-left-10">时间</label>
              <div class="datepk-box c-select vm w240 pop-style vm margin-left-10">
                <input type="text" name="" id="" readonly class="datepk form-control">
                <span class="c-select-btn"></span>
              </div>

              <span class="padding-left-10 padding-right-10 vm">至</span>

              <div class="datepk-box c-select vm w240 pop-style vm">
                <input type="text" name="" id="" readonly class="datepk form-control">
                <span class="c-select-btn"></span>
              </div>
              <!--<div class="input-group input-daterange search-date">
                <input type="text" class="form-control" name="" id="">
                <span class="input-group-addon">至</span>
                <input type="text" class="form-control" name="" id="">
              </div>-->

              <label for="search"><span class="glyphicon glyphicon-search margin-10 font-16"></span></label>
            </div>

          </form>
        </div>
      </div>
    </div>
  </div>
</div>
<!-- table -->
<div class="padding-top-10 padding-bottom-10 margin-top-20">
  <div class="container">
    <div class="row">

      <div id="table" class="col-sm-12 margin-top-20">
        <table class="table text-center" id="listTable"></table>
      </div>

      <div class="col-sm-12 clearfix">
        <!--<div class="pages"></div>-->
        <p class="float-left">总条数：<span id="totalRow">20</span></p>

        <div class="table-pagination float-right line-height-34 margin-left-10 text-center" id="pages"></div>

        <div class="float-right">
          <form class="form-inline">
            <span>显示条数：</span>
            <select name="pageSize" id="pageSize" class="form-control">
              <option value="10">10</option>
              <option value="20">20</option>
              <option value="30">30</option>
            </select>
          </form>
        </div>


      </div>
    </div>
  </div>
</div>

<script id="l43List" type="text/html">
  <thead>
  <tr>
    <th></th>
    <th>项目名称</th>
    <th>报销天数</th>
    <th>报销金额</th>
    <!--<th>报销编号</th>-->
    <th>进度</th>
    <th>提报日期</th>
    <th class="">操作</th>
  </tr>
  </thead>
  <tbody>
  {{each $data}}
  <tr>
    <td>{{$index + 1}}</td>
    <td>{{$value.ProjectName}}</td>
    <td>{{$value.CountDay}}</td>
    <td>{{$value.CountMoney}}</td>
    <td>{{$value.State}}</td>
    <td>{{$value.SubmitTime}}</td>
    <td>
<!--'发票寄出'、'发票签收'、'财务审核通过'、'已报销','驳回申请'-->
      {{if $value.State == '发票寄出'}}
      <button type="button" class="btn btn-warning receive">接收快递</button>
      {{else if $value.State == '发票签收'}}
      <button type="button" class="btn btn-primary" disabled="disabled">发票签收</button>
      {{else if $value.State == '财务审核通过'}}
      <button type="button" class="btn btn-primary pay">确认付款</button>
      {{else if $value.State == '已报销'}}
      <button type="button" class="btn btn-default" disabled="disabled">已付款</button>
      {{/if}}
      <!--<button type="button" class="btn btn-warning getPackage">接收快递</button>-->
      <!--<button type="button" class="btn btn-primary">确认付款</button>-->
      <!--<button type="button" class="btn btn-default" disabled="disabled">已付款</button>-->


      <a class="btn btn-success margin-left-10 view">详单审核</a>
    </td>
  </tr>
  {{/each}}
  </tbody>

</script>

<!-- 单日票据审核 -->
<div class="modal fade" id="detailList" tabindex="-1" role="dialog" aria-hidden="true" data-backdrop="static" aria-labelledby="myModalLabel">
  <div class="modal-dialog" role="document">
    <div class="modal-content padding-10 w700">
      <div class="text-right">
        <a class="close-pop" data-dismiss="modal"><span class="glyphicon glyphicon-remove"></span></a>
      </div>
      <div id="viewDetail">
        <form class="form-horizontal">
          <div class="form-group">
            <label for="" class="col-sm-3 control-label">快递接收人</label>
            <div class="col-sm-3">
              <select name="td1" id="td1" class="form-control">
                <option value="财务A">财务A</option>
                <option value="财务B">财务B</option>
                <option value="财务C">财务C</option>
              </select>
            </div>
          </div>
          <div class="form-group">
            <div class="col-sm-3 col-sm-offset-3">
              <button type="button" id="confirm" class="btn btn-success btn-block">确认接收</button>
            </div>
          </div>
        </form>
      </div>
    </div>
  </div>
</div>

@section myscript{
<script src="~/Content/js/bind51.js"></script>
}